package com.explorati.design_pattern.creational.singleton.example;

public enum EnumInstance {

	INSTANCE{
		protected synchronized int getNum(){
			return ++num;
		}
	};

	protected abstract int getNum();
	private static int num;
	
	public static EnumInstance getInstance(){
		return INSTANCE;
	}
	
	
}
